package org.myframework.commons.ftp;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

public interface CommonFtp {
	public abstract boolean changeDir(String remotePath) throws Exception;

	public abstract boolean connect(String host, String login, String password,
			int port) throws Exception;

	public abstract void disconnect() throws Exception;

	public abstract List<String> listFileInDir(String remoteDir)
			throws Exception;

	public abstract boolean uploadFile(String localFile, String remotePath)
			throws IOException;

	public abstract boolean uploadFile(InputStream is, String remotePath)
			throws IOException;

	public abstract List<String> listSubDirInDir(String remoteDir)
			throws Exception;

	public abstract boolean isARemoteDirectory(String path);

	public abstract String getWorkingDirectory();
}
